﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace NotifyCenter.Projects;
internal class ProjectConfiguration : IEntityTypeConfiguration<Project>
{
    public void Configure(EntityTypeBuilder<Project> builder)
    {
        builder.Configure();

        builder.Property(project => project.Name)
            .IsRequired()
            .HasMaxLength(255);

        builder.Property(project => project.Description)
            .HasMaxLength(2000);
    }
}
